#include "stm32f10x.h"                  // Device header
#include "oled.h"
#include "Countersensor.h"



int main(int argc, char *argv[])
{	
	OLED_Init();
	OLED_ShowString(1, 1, "Counter:");

	Countersenor_Init();
	
	SysTick_Config(SystemCoreClock / 1000); // 配置SysTick每毫秒中断一次
	
	uint16_t Counter;
	while(1)
	{
		Counter = getCountersensor();
		OLED_ShowNum(1,8,Counter,5);
	}
	
	return 1;
}

